import java.util.Scanner;

//读入分数并显示总分，和平均分
public class SortClass {
    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        final int people=5;//5个人数
        int sum=0;
        int[] score=new int[people];//定于score数组
        System.out.println("请输入"+people+"个学生的分数");
        for (int i=0;i<people;i++) {
            System.out.print((i + 1) + "号的分数：");
            score[i] = stdIn.nextInt();
            sum +=score[i];
        }
        System.out.println("sum is:"+sum+"分");
        System.out.println("average is:"+sum/people+"分");

    }
}
